package pdfsetter.core.schema;

import java.util.Collection;

import pdfsetter.core.pages.PageInfo;

/**
 * PageBuildSchema describe how to set one page. PageInfo says how the page should look like. On such page we insert pages from other files - this is
 * represented by collection of {@link PageInsertSchema}.
 * 
 * @author Andrzej Dorobisz
 */
public class PageBuildSchema {
    private final Collection<PageInsertSchema> pageInsertSchemas;
    private final PageInfo pageInfo;

    public PageBuildSchema(Collection<PageInsertSchema> pageInsertSchemas, PageInfo pageInfo) {
        this.pageInsertSchemas = pageInsertSchemas;
        this.pageInfo = pageInfo;
    }

    public Collection<PageInsertSchema> getPageInsertSchemas() {
        // TODO Should it be unmodifiable collection?
        return pageInsertSchemas;
    }

    public PageInfo getPageInfo() {
        return pageInfo;
    }
}
